package com.xx.dao.impl;

import com.xx.dao.OrderDao;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Repository;

@Repository("orderDao")   //指定对象交由spring管理
public class OrderDaoImpl implements OrderDao {
    //获取配置文件中的数据
    @Value("${name}")
    String name;
    @Value("${money}")
    String money;
    @Value("${color}")
    String color;

    @Override
    public void showOrderDetail() {
        System.out.println(name + "   "+money+"   "+color);
    }
}
